package be.jhd.appserver;

import org.apache.commons.lang.StringUtils;

import be.jhd.repository.Artifact;

public class DeployedArtifact extends Artifact{
	
	private final String deployedName;

	public DeployedArtifact(Artifact artifact, String version, String deployedName) {
		super(artifact.getGroup(), artifact.getArtifact(), version);
		this.deployedName = deployedName;
	}

	public String getDeployedName() {
		return deployedName;
	}
	
	public boolean isDeployed(){
		return !StringUtils.isBlank(deployedName);
	}

}
